package com.pcj.blog.service;
/**
 * @param
 * @author pcj
 * @date 2021/12/28 18:59
 * @return
 */

import com.pcj.blog.po.Tag;
import com.pcj.blog.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;

import java.util.List;

/**
 *
 * @className TagService
 * @author pengcj
 * @date 2021/12/28 18:59
 */

public interface TagService {
    Tag saveTag(Tag tag);
    Tag updataTag(Long id, Tag tag);
    Tag getTagByid(Long id);
    Page<Tag> listTag(Pageable pageable);
    void  deleteTag(Long id);
    Tag getTagByName(String name);
    List<Tag> listTag();
    List<Tag> listTag(String ids);
    List<Tag> listTop(Integer size);
}
